package org.ihelpuoo.orm.objs;

import java.util.List;
import java.util.Map;

public class Person extends One
{
	private int						companyId;
	private Company					company;
	private List<Thing>				things;
	private Map<String, Property>	properties;

	public int getCompanyId()
	{
		if (null != company)
			return company.getId();
		return companyId;
	}

	public void setCompanyId(int companyId)
	{
		this.companyId = companyId;
	}

	public Company getCompany()
	{
		return company;
	}

	public void setCompany(Company company)
	{
		this.company = company;
	}

	public List<Thing> getThings()
	{
		return things;
	}

	public void setThings(List<Thing> things)
	{
		this.things = things;
	}

	public Map<String, Property> getProperties()
	{
		return properties;
	}

	public void setProperties(Map<String, Property> properties)
	{
		this.properties = properties;
	}

}
